package com.yc.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.base.BaseService;
import com.yc.user.entity.UserRoleRelation;

import java.util.List;

/**
 * <p>
 * 后台用户和角色关系表 服务类
 * </p>
 *
 * @author bao
 * @since 2021-12-09
 */
public interface IUserRoleRelationService extends BaseService<UserRoleRelation> {

    boolean create(UserRoleRelation userRoleRelation);

    boolean createBatch(List<UserRoleRelation> userRoleRelationList);

    boolean delete(List<Long> ids);

    boolean deleteByUid(Long uid);

    boolean deleteByUids(List<Long> ids);

    boolean update(UserRoleRelation userRoleRelation);

    UserRoleRelation queryById(Long id);

    List<UserRoleRelation> selectList();

    Page<UserRoleRelation> selectPage(Integer pageNum, Integer pageSize);

}
